'''
Created on 2011-07-26

@author: Mikael
'''
from View.Widgets.EntityEditor.ComponentEditor import ComponentEditor
from View.Widgets.EntityEditor.Translate3D_ui import TranslateExample
from View.Widgets.EntityEditor.Rotate3D_ui import RotateExample
from View.Widgets.EntityEditor.Dimension3D_ui import DimensionExample
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from Model.EditorPath import EditorPath

class TranformationComponentEditor(ComponentEditor):
    '''
    classdocs
    '''


    def __init__(self, title="title", parent=None):
        '''
        Constructor
        '''
        ComponentEditor.__init__(self, title, parent)
        
        self.setMinimumHeight(600)
        self.setMaximumHeight(600)
        self.setMinimumWidth(100)
        
        r = RotateExample()
        t = TranslateExample()
        d = DimensionExample()
        
        self.mLayout = QVBoxLayout()
        self.mLayout.addWidget(t)
        self.mLayout.addWidget(r)
        self.mLayout.addWidget(d)
        self.setLayout(self.mLayout)
        
        self.mImage         = QImage()
        self.mImage.load(EditorPath.mImageFolderPath + EditorPath.mTransformation32ImageFile)
        self.mImageHover    = QImage()
        self.mImageHover.load(EditorPath.mImageFolderPath + EditorPath.mTransformation32HoverImageFile)
        self.mImagePressed  = QImage()
        self.mImagePressed.load(EditorPath.mImageFolderPath + EditorPath.mTransformation32PressedImageFile)
        self.mTitle = "Transformation"
        

